﻿@model Classified.Web.Models.ChangePasswordModel
@{
    ViewBag.Title = "Change Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="span11">
    <h2>
        Change Password</h2>
    @using (Html.BeginForm())
    {
        @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
    
        <fieldset>
            <div class="clearfix">
                @Html.LabelFor(m => m.OldPassword)
                <div class="input">
                    @Html.PasswordFor(m => m.OldPassword)
                    @Html.ValidationMessageFor(m => m.OldPassword)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(m => m.NewPassword)
                <div class="input">
                    @Html.PasswordFor(m => m.NewPassword)
                    @Html.ValidationMessageFor(m => m.NewPassword)
                </div>
            </div>
            <div class="clearfix">
                @Html.LabelFor(m => m.ConfirmPassword)
                <div class="input">
                    @Html.PasswordFor(m => m.ConfirmPassword)
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </div>
            </div>
            <div class="form-actions">
                <input type="submit" class="btn btn-info" value="Change Password" />
            </div>
        </fieldset>
   
    }
</div>
